import Vue from 'vue';
import SvgIcon from '@/components/SvgIcon'; // svg component

// register globally
Vue.component('SvgIcon', SvgIcon);

// const req = require.context('./svg', false, /\.svg$/);
// 换成 vite 循环文件
const req = import.meta.globEager('@/icons/svg/*.svg');
console.log(req, 'req');
const requireAll = (requireContext) => requireContext.map(requireContext);
requireAll(req);
